home *** CD-ROM | disk | FTP | other *** search
/ Champak 143 / (Vol 143) Nov 15 2011.iso / Games / aqua_cubes.swf / scripts / frame_82 / DoAction_4.as < prev    next >
Text File  |  2011-11-15  |  2KB  |  58 lines

  1. _root.displaymode = 1;
  2. _root.pa_setting.window.gotoAndStop(strToNum(_root.win_act));
  3. _root.pa_setting.full_low.gotoAndStop(strToNum(_root.low_act));
  4. _root.pa_setting.full_mid.gotoAndStop(strToNum(_root.mid_act));
  5. _root.pa_setting.full_high.gotoAndStop(strToNum(_root.high_act));
  6. _root.pa_setting.q_low.gotoAndStop(strToNum(_root.q_low));
  7. _root.pa_setting.q_mid.gotoAndStop(strToNum(_root.q_mid));
  8. _root.pa_setting.q_high.gotoAndStop(strToNum(_root.q_high));
  9. if(strToNum(_root.q_low) == 2)
  10. {
  11.    _root._quality = "LOW";
  12. }
  13. if(strToNum(_root.q_mid) == 2)
  14. {
  15.    _root._quality = "MEDIUM";
  16. }
  17. if(strToNum(_root.q_high) == 2)
  18. {
  19.    _root._quality = "HIGH";
  20. }
  21. _root.pa_setting.b_cancel.onRelease = function()
  22. {
  23.    _root.pa_setting.window.gotoAndStop(strToNum(_root.win_act));
  24.    _root.pa_setting.full_low.gotoAndStop(strToNum(_root.low_act));
  25.    _root.pa_setting.full_mid.gotoAndStop(strToNum(_root.mid_act));
  26.    _root.pa_setting.full_high.gotoAndStop(strToNum(_root.high_act));
  27.    _root.pa_setting.q_low.gotoAndStop(strToNum(_root.q_low));
  28.    _root.pa_setting.q_mid.gotoAndStop(strToNum(_root.q_mid));
  29.    _root.pa_setting.q_high.gotoAndStop(strToNum(_root.q_high));
  30.    if(strToNum(_root.q_low) == 2)
  31.    {
  32.       _root._quality = "LOW";
  33.    }
  34.    if(strToNum(_root.q_mid) == 2)
  35.    {
  36.       _root._quality = "MEDIUM";
  37.    }
  38.    if(strToNum(_root.q_high) == 2)
  39.    {
  40.       _root._quality = "HIGH";
  41.    }
  42.    _root.pa_setting._visible = false;
  43. };
  44. _root.pa_setting.b_ok.onRelease = function()
  45. {
  46.    _root.pa_setting._visible = false;
  47.    _root.displaymode = _root.pa_setting.window._currentframe * 1000 + _root.pa_setting.full_low._currentframe * 100 + _root.pa_setting.full_mid._currentframe * 10 + _root.pa_setting.full_high._currentframe;
  48.    getUrl("FSCommand:open", "config.txt");
  49.    getURL("FSCommand:write",_root.displaymode);
  50.    fscommand("close");
  51.    getUrl("FSCommand:open", "saveconfig.txt");
  52.    getURL("FSCommand:write","win_act=" + _root.pa_setting.b_window._currentframe + "&low_act=" + _root.pa_setting.b_fulllow._currentframe + "&mid_act=" + _root.pa_setting.b_fullmid._currentframe + "&high_act=" + _root.pa_setting.b_fullhigh._currentframe);
  53.    fscommand("close");
  54.    getUrl("FSCommand:open", "savequality.txt");
  55.    getURL("FSCommand:write","q_low=" + _root.pa_setting.b_qlow._currentframe + "&q_mid=" + _root.pa_setting.b_qmid._currentframe + "&q_high=" + _root.pa_setting.b_qhigh._currentframe);
  56.    fscommand("close");
  57. };
  58.